package example03;

public class Rectangle {
    int width, height;
    public Rectangle (int a, int b) {
        width = a;
        height = b;
    }
    public int area() { 
            return (width*height);
    }
    public static void main(String[] args) 
    {
        Rectangle  recta = new   Rectangle(3,4);
        Rectangle  rectb = new  Rectangle(5,6);
        rectb=recta;
        System.out.println("rect a:"+ recta.area());
        System.out.println("rect b:"+ rectb.area());
    }

}
